package com.example.spring_mysql.mapper;

import com.example.spring_mysql.entity.User;
import com.mybatisflex.core.BaseMapper
//import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper
import org.apache.ibatis.annotations.Select

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hjw
 * @since 2025-06-11
 */
interface UserMapper : BaseMapper<User> {
    fun selectByUsernameAndPsw(username: String, pws: String): List<User>

    @Select("SELECT * FROM user")
    fun getUsers(): List<User>
}
